package com;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Testpublic {
	public static void main(String[] args) {
		Testpublic tp=new Testpublic();
		tp.mainmethod();
	}
	
	public  void mainmethod(){
		
		int a=5;
		System.out.println("After init Primitive value a:"+a);
		
		int[] aa1=new int[10];
		for (int i:aa1){
			 System.out.println("Before init Array of primitive aa1 "+i);
		 }
		
		aa1[0]=100;
		aa1[1]=200;
		aa1[2]=300;
		aa1[3]=400;
		for (int i:aa1){
			 System.out.println("After init Array of primitive aa1 "+i);
		 }
		
		
		int[] aa2={10,20,30,40};
		for (int i:aa2){
			 System.out.println("After init Array of primitive aa2 "+i);
		 }
		
		//print the dynamic array
		 for (int i:aa2){
			 System.out.println("The value of the arrray a2:"+i);
		 }
		
		 //find the total of array
		 int total=0;
		 for(int i:aa2){
			total+=i;
		}
		System.out.println("total value of array a2:"+total);
		
		//finding the largest value of array a2
		int max=aa2[0];
		
		for(int i:aa2){
		if(i>max){
			max=i;
		}
		}
		System.out.println("Max value of the array a2:"+max);
		
		//finding the min value of array a2
		int min=aa2[0];
		for(int i:aa2)
		{
			if(i<min){
				min=i;
			}
		}
		System.out.println("Min value of the array a2:"+min);
		
				
		
		String s="good example";
		System.out.println("After init String object "+s);
		
		String[] s1={"one","two","three","four"};
		for(String s0:s1){
			System.out.println("The value of array s1:"+s0);
		}
		
		String[] s2=new String[5];
		for(String s0:s2){
			System.out.println("Before init the value of array s2:"+s0);
		}
		s2[0]="s2one";
		s2[1]="s2two";
		s2[2]="s2three";
		s2[3]="s2four";
		s2[4]="s2five";
		for(String s0:s2){
			System.out.println("After init the value of array s2:"+s0);
		}
		
		
		Set<String> st1= new HashSet<String>(); 
		
		List<Integer> l1=new ArrayList<Integer>();
		List<String> l2=new ArrayList<String>();
	
		
		
		
		
		
		
		
		
	}
	
	public void mainmethod(int a){
		int a1;
		int a2[];
		String s=null;
		String s1[]=null;
		List l1[]=null;
		
	}
	public void mainmethod(final int a,int b){
		int a1;
		int a2[];
		String s=null;
		String s1[]=null;
		List l1[]=null;
		}
	public void mainmethod(int a[]){
		int a1;
		int a2[];
		String s=null;
		String s1[]=null;
		List l1[]=null;
	}
	public void mainmethod(String s){
		int a1;
		int a2[];
		String s0=null;
		String s1[]=null;
		List l1[]=null;
	}
		public void mainmethod(String s[]){
			int a1;
			int a2[];
			String s0=null;
			String s1[]=null;
			List l1[]=null;
	}
	public void mainmethod(List s){
		int a1;
		int a2[];
		String s0=null;
		String s1[]=null;
		List l1[]=null;
	}
public void mainmethodinch(){
	final int a1;
	final int a2[];
	final String s0=null;
	final String s1[]=null;
	final List l1[]=null;
	
}
public void mainmethodinch(int a){
	final int a1;
	final int a2[];
	final String s=null;
	final String s0[]=null;
	final List l1[]=null;
	
}

public void mainmethodinch(final int a,int b){
	final int a1;
	final int a2[];
	final String s=null;
	final String s0[]=null;
	final List l1[]=null;
}

public void mainmethodinch(int a[]){
final int a1;
final int a2[];
final String s=null;
final String s0[]=null;
final List l1[]=null;
}

public void mainmethodinch(String s){
	final int a1;
	final int a2[];
	final String s0=null;
	final String s1[]=null;
	final List l1[]=null;
}

public void mainmethodinch(String s[]){
	final int a1;
	final int a2[];
	final String s1=null;
	final String s2[]=null;
	final List l1[]=null;
	}
public void mainmethodinch(List s){
	final int a1;
	final int a2[];
	final String s1=null;
	final String s2[]=null;
	final List l1[]=null;
	}

}
